package com.itrus.raapi.result;

import java.util.Collection;

public class QueryResult extends SqlResult
{
  private int pageSize;
  private Object result;
  private Collection results;
  private int resultsCount;
  private int total;

  public int getPageCount()
  {
    int i;
    if (this.pageSize <= 0)
      i = 0;
    double d;
    do
    {
      return i;
      if (this.total <= this.pageSize)
        return 1;
      d = this.total / this.pageSize;
      i = this.total / this.pageSize;
    }
    while (d <= i);
    return i + 1;
  }

  public Object getResult()
  {
    return this.result;
  }

  public Collection getResults()
  {
    return this.results;
  }

  public int getResultsCount()
  {
    if (this.results != null)
      return this.results.size();
    return this.resultsCount;
  }

  public int getTotal()
  {
    return this.total;
  }

  public void setPageSize(int paramInt)
  {
    this.pageSize = paramInt;
  }

  public void setResult(Object paramObject)
  {
    this.result = paramObject;
  }

  public void setResults(Collection paramCollection)
  {
    this.results = paramCollection;
  }

  public void setTotal(int paramInt)
  {
    this.total = paramInt;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.itrus.raapi.result.QueryResult
 * JD-Core Version:    0.6.2
 */